Object.forEach   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 8
rs 9.4285

1 Function

Rating   Name   Duplication   Size   Complexity  
A 0 3 1
1
var Manager = require('./Manager').Manager
2
var defaultManager = new Manager()
3
4
/**
5
 * @type {IStubManager}
6
 */
7
var exported = {
8
  Stubs: require('./Stub'),
9
  Manager: Manager,
10
  defaultManager: defaultManager
11
}
12
Object.keys(defaultManager).forEach(function (name) {
13
  var property = defaultManager[name]
14
  if (typeof property === 'function') {
15
    exported[name] = function () {
16
      defaultManager[name].apply(defaultManager, arguments)
17
    }
18
  }
19
})
20
21
/**
22
 * @type {IStubManager}
23
 */
24
module.exports = exported
25